data = """BTC 9500 0.01
EOS 2.63 10
ETH 200 0.1
XRP 0.20 100
BCHABC 238 0.1
BSV 189 1
LTC 44 1
ETC 6.68 10
"""
for line in data.splitlines():
    tokens = line.split(' ')
    coin = tokens[0]
    price = float(tokens[1])
    face = float(tokens[2])
    # 1000 USD
    # price*face*qty = 1000
    qty = 1000.0 / price / face
    print(coin, qty)

